{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input name="id" type="hidden" value="{$data.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">商家名称</label>
        <div class="layui-input-block">
            <input type="text" name="row[business_name]" autocomplete="off" placeholder="商家名称" class="layui-input"
                   value="{$data.business_name}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商家联系人</label>
        <div class="layui-input-block">
            <input type="text" name="row[name]" autocomplete="off" placeholder="商家联系人" class="layui-input"
                   value="{$data.name}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="color: red">待提现金额</label>
        <div class="layui-input-block">
            <input type="text" name="row[phone]" autocomplete="off" placeholder="待提现金额" class="layui-input"
                   value="{$data.amount}" readonly="readonly">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="color: red">待核销订单</label>
        <div class="layui-input-block">
            <input type="text" name="row[phone]" autocomplete="off" placeholder="待核销订单" class="layui-input"
                   value="{$dai_count}" readonly="readonly">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label" style="color: red">待回款金额</label>
        <div class="layui-input-block">
            <input type="number" name="row[min_tixian]" autocomplete="off" placeholder="待回款金额"
                   class="layui-input"
                   value="{$dai_huikuan}"
                   readonly="readonly"
            >
        </div>
    </div>

    <div class="layui-form-item">
        <div style="color: red;margin-left: 25px">删除商家建议先联系商家，账单清账。（敏感数据，谨慎删除！）</div>
    </div>

    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>确认删除</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm', 'laydate','form'], function () {
        var yznForm = layui.yznForm,
            laydate = layui.laydate;
        var form = layui.form;
        yznForm.bindevent($("form.layui-form"));
        laydate.render({
            elem: '#ID-laydate'
        });
        form.on('select(ccc6)', function (data) {
            console.log(data.value);
            if (data.value == 3) {
                $(".c5").show();
            } else{
                $(".c5").hide();
            }
            form.render();
        });
    });
</script>
{/block}